package com.zzyl.nursing.domain;

import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.zzyl.common.annotation.Excel;
import com.zzyl.common.core.domain.BaseEntity;

/**
 * 入住对象 check_in
 * 
 * @author zzyl
 * @date 2025-10-16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("入住实体")
public class CheckIn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
    * 主键ID
    */
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /**
    * 老人姓名
    */
    @Excel(name = "老人姓名")
    @ApiModelProperty(value = "老人姓名")
    private String elderName;

    /**
    * 老人ID
    */
    @Excel(name = "老人ID")
    @ApiModelProperty(value = "老人ID")
    private Long elderId;

    /**
    * 身份证号
    */
    @Excel(name = "身份证号")
    @ApiModelProperty(value = "身份证号")
    private String idCardNo;

    /**
    * 入住开始时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入住开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "入住开始时间")
    private LocalDateTime startDate;

    /**
    * 入住结束时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入住结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "入住结束时间")
    private LocalDateTime endDate;

    /**
    * 护理等级名称
    */
    @Excel(name = "护理等级名称")
    @ApiModelProperty(value = "护理等级名称")
    private String nursingLevelName;

    /**
    * 入住床位
    */
    @Excel(name = "入住床位")
    @ApiModelProperty(value = "入住床位")
    private String bedNumber;

    /**
    * 状态 (0: 已入住, 1: 已退住)
    */
    @Excel(name = "状态 (0: 已入住, 1: 已退住)")
    @ApiModelProperty(value = "状态 (0: 已入住, 1: 已退住)")
    private Integer status;

    /**
    * 排序编号
    */
    @Excel(name = "排序编号")
    @ApiModelProperty(value = "排序编号")
    private Integer sortOrder;

}
